;var jsDb={
    set:function(key,value){
        localStorage.setItem(key,value);
    },
    get:function(key){
        return localStorage.getItem(key);
    },
    setS:function(key,value){
        sessionStorage.setItem(key,value);
    },
    getS:function(key){
        return sessionStorage.getItem(key);
    },

    getJsonS:function(key){
        var value=this.getS(key);
        if(value){
            return jsonUtil.json(value);
        }
        return null;
    },
    getJson:function(key){
        var value=this.get(key);
        if(value){
            return jsonUtil.json(value);
        }
        return null;
    },
    setInList:function(key,value){
        var list=this.getJson(key);
        if(!list){
            this.set(key,jsonUtil.str([value]));
        }else{
            list.push(value);
            this.set(key,jsonUtil.str(list));
        }
    },
    setInListS:function(key,value){
        var list=this.getJsonS(key);
        if(!list){
            this.setS(key,jsonUtil.str([value]));
        }else{
            list.push(value);
            this.setS(key,jsonUtil.str(list));
        }
    },

}

